package com.shangxian.giveithome.service;

import com.shangxian.giveithome.entity.PageableDetails;
import com.shangxian.giveithome.entity.community.Attention;
import com.shangxian.giveithome.entity.community.UserList;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;

@Service
public interface AttentionService {

    /**
     * 关注用户
     * @param attention
     * @param request
     * @return
     */
    void attentionUser(Attention attention, HttpServletRequest request);

    /**
     * 取消关注
     */
    void cancelAttention(Long attentionId, HttpServletRequest request);

    /**
     * 查询关注用户 分页查询
     * @param request
     * @return
     */
    PageableDetails  findAllAttentionUser(HttpServletRequest request, Pageable pageable);



    /**
     * 查询关注用户合集详情页面的用户信息
     * @param id
     * @return
     */
    UserList findAttentionCollectionUserMessage(Long id,HttpServletRequest request);


}
